github.com/google/go-cmp/cmp.sliceIndex.xkey (field)
11 uses
github.com/google/go-cmp/cmp (current package)
compare.go#L440: step.vx, step.xkey = vx.Index(ix), ix
compare.go#L442: step.vx, step.xkey = reflect.Value{}, -1
path.go#L214: xkey, ykey int
path.go#L222: case si.xkey == si.ykey:
path.go#L223: return fmt.Sprintf("[%d]", si.xkey)
path.go#L226: return fmt.Sprintf("[%d->?]", si.xkey)
path.go#L227: case si.xkey == -1:
path.go#L232: return fmt.Sprintf("[%d->%d]", si.xkey, si.ykey)
path.go#L238: if si.xkey != si.ykey {
path.go#L241: return si.xkey
path.go#L253: func (si SliceIndex) SplitKeys() (ix, iy int) { return si.xkey, si.ykey }